Skip to content

fix: Use alternative logout url for oauth2#1182

Merged
ZohebShaikh merged 5 commits into
mainfrom
logout-url-change
Sep 5, 2025
Merged

fix: Use alternative logout url for oauth2#1182
ZohebShaikh merged 5 commits into
mainfrom
logout-url-change

Conversation

@ZohebShaikh
Copy link
Copy Markdown
Contributor

Currently it is sending the request to the oauth2-proxy but is not redirecting blueapi to the Identity provider so I will give this a try with the other method in oauth2-proxy docs.

[2025/08/27 10:20:01] p46-blueapi.diamond.ac.uk GET blueapi "/logout" HTTP/1.1 "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0" 308 0 0.008
10.32.0.21:57828 - 6cc428867cd7ff0b3ddc0faabc4cddcf - b1370833-c4a3-49c2-9a1e-1a69e3854b59 [2025/08/27 10:20:01] p46-blueapi.diamond.ac.uk GET - "/oauth2/sign_out" HTTP/1.1 "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0" 302 24 0.000

@ZohebShaikh ZohebShaikh requested a review from a team as a code owner August 28, 2025 09:04
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.54%. Comparing base (089ef05) to head (5bca1ec).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1182   +/-   ##
=======================================
  Coverage   94.54%   94.54%           
=======================================
  Files          41       41           
  Lines        2566     2568    +2     
=======================================
+ Hits         2426     2428    +2     
  Misses        140      140           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

response.headers.get("X-Auth-Request-Redirect")
== oidc_config.end_session_endpoint
response.headers.get("location")
== "/oauth2/logout/https%3A%2F%2Fexample.com%2Fend_session"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
== "/oauth2/logout/https%3A%2F%2Fexample.com%2Fend_session"
== oidc_config.end_session_endpoint + "/https%3A%2F%2Fexample.com%2Fend_session"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to see the actual url being generated

@ZohebShaikh ZohebShaikh merged commit be2f7b3 into main Sep 5, 2025
19 checks passed
@ZohebShaikh ZohebShaikh deleted the logout-url-change branch September 5, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants